package dto

import "gin-YiStudio-V1/dao/model"

type UserDto struct {
	Name      string
	Telephone string
}

func ToUserDto(user *model.User) UserDto {
	return UserDto{
		Name:      user.UserName,
		Telephone: user.Telephone,
	}
}
